import java.util.LinkedList;

public class Text {


    public static void main(String[] args) {
        MyLinglist list=new MyLinglist();
        list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.addFirst(3);
        list.addFirst(3);
        list.display();
        list.remove(3);
        list.addIndex(1,3);
        list.removeAllKey(3);
        list.display();
    }
}
